package com.opencvjava.zero;

import java.util.ArrayList;
import java.util.List;

public class Block {
    private List<Unit> units = new ArrayList<>();

    public int unitSize() {
        return units.size();
    }

    public Block addUnit(Unit unit) {
        this.units.add(unit);
        return this;
    }

    public List<Unit> getUnits() {
        return units;
    }

    public Block setUnits(List<Unit> units) {
        this.units = units;
        return this;
    }
}
